package org.jeecg.modules.flowermater.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.flowermater.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 采后物资台账表
 * @Author: jeecg-boot
 * @Date:   2022-07-13
 * @Version: V1.0
 */
public interface IFlowerMaterialBookService extends IService<FlowerMaterialBook> {
    /**
     *
     * 新增台账库存
     */
    boolean createBooks(FlowerMaterialInMain flowerMaterialInMain, List<FlowerMaterialIn> flowerMaterialInList) ;

    /**
     *
     * 删除台账库存
     */
    boolean deleteBooks(String inMainId) ;

    /**
     *
     * 返回出库台账
     */
    boolean backOutBooks(String inMainId );
    /**
     *
     * 出库的扣减台账库存
     */
    boolean createOutBooks( FlowerMaterialOutMain flowerMaterialOutMain, List<FlowerMaterialOut> flowerMaterialOutList ) ;

    /**
     *
     * 物资成本查询
     * @param page
     * @param storehouse
     * @param cost
     * @return
     */
    IPage<FlowerMaterialCost> queryMaterCost(IPage<FlowerMaterialCost> page,  String storehouse,   String cost,   String sDate,   String eDate);
}
